home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
SYMBOL
/
Conversions
/
Symbols
/
symbol-to-vector
< prev
next >
Wrap
Text File
|
1998-10-23
|
510b
|
11 lines
symbol-to-vector [&optional min-value max-value] symbol-pattern
Converts symbols in symbol-pattern to real values in range defined by min-value and max-value. A vector is returned. See also the opposite function vector-to-symbol. If optional values are missing then the range -0.5 to 0.5 is used.
(symbol-to-vector -1 1 '(a b c d e))
--> #(-1.0 -0.5 0.0 0.5 1.0)
A chord symbol is melodized.
(symbol-to-vector '(a bcd (-1 c) =))
--> #(-0.5 -0.16666666666666669 0.16666666666666663 0.5 0.16666666666666663)